feat: Add SCIM scenarios; Fix findings - #1136
Open
gtema wants to merge 1 commit into
Open
Conversation
Add ScimRealmRead and ScimSync loadtest scenarios covering raft-backed federation/SCIM (ADR 0021, 0024): realm CRUD reads/updates via admin token, and the real IdP-connector lifecycle over /SCIM/v2 with a per-VU API Key bearer (provision, reconcile, attribute drift, offboard). Seed setup is now idempotent against a pre-existing SCIM realm/IdP (no delete endpoint exists, so an interrupted prior run leaves them behind; 409 now reuses them instead of aborting seed). While chasing intermittent 401s surfaced by ScimSync under load, found and fixed two real bugs in the raft-backed auth path: - Timing oracle in ApiKeyAuth: the IP-not-allowed rejection branch returned immediately while every other rejection branch (not-found, inactive, wrong-secret) burns an Argon2id hash first, letting an attacker distinguish a valid-but-IP-blocked lookup_hash from a nonexistent one by response latency (ADR 0021 Invariant 7). Now burns the same dummy-hash cost. - Two linearizability gaps in the ReadIndex forward-to-leader path (get_by_key/prefix/prefix_index): the leader-side gRPC handlers served forwarded reads without re-confirming current leadership, and follower-side callers silently fell back to an unguarded local read whenever the forward RPC failed. Both fixed. Signed-off-by: gtema <artem.goncharov@gmail.com>
|
🦢 Load Test Results Goose Attack ReportPlan Overview
Request Metrics
Response Time Metrics
Status Code Metrics
Transaction Metrics
Scenario Metrics
Error Metrics
|
|
🧪 Tempest Identity Compatibility Results (advisory, non-blocking) rust Failed test IDs |
|
| Project | keystone |
| Branch | claude/loadtest-expansion-stress-u8i0j4 |
| Testbed | ubuntu-latest |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result nanoseconds (ns) (Result Δ%) | Upper Boundary nanoseconds (ns) (Limit %) |
|---|---|---|---|
| Command_Serde/apply/remove | 📈 view plot 🚷 view threshold | 137,830.00 ns(-57.80%)Baseline: 326,579.98 ns | 1,641,183.25 ns (8.40%) |
| Command_Serde/apply/set | 📈 view plot 🚷 view threshold | 152,380.00 ns(-57.54%)Baseline: 358,867.92 ns | 1,691,409.74 ns (9.01%) |
| Command_Serde/pack/delete | 📈 view plot 🚷 view threshold | 125.43 ns(+6.11%)Baseline: 118.20 ns | 157.50 ns (79.64%) |
| Command_Serde/pack/delete_index | 📈 view plot 🚷 view threshold | 109.65 ns(+4.78%)Baseline: 104.65 ns | 138.67 ns (79.07%) |
| Command_Serde/pack/set | 📈 view plot 🚷 view threshold | 198.05 ns(+4.71%)Baseline: 189.13 ns | 249.88 ns (79.26%) |
| Command_Serde/pack/set_index | 📈 view plot 🚷 view threshold | 109.83 ns(+4.90%)Baseline: 104.70 ns | 138.98 ns (79.03%) |
| Command_Serde/unpack/delete | 📈 view plot 🚷 view threshold | 187.82 ns(+2.49%)Baseline: 183.26 ns | 264.66 ns (70.97%) |
| Command_Serde/unpack/delete_index | 📈 view plot 🚷 view threshold | 157.12 ns(+2.26%)Baseline: 153.64 ns | 215.80 ns (72.81%) |
| Command_Serde/unpack/set | 📈 view plot 🚷 view threshold | 270.24 ns(+5.77%)Baseline: 255.50 ns | 348.79 ns (77.48%) |
| Command_Serde/unpack/set_index | 📈 view plot 🚷 view threshold | 155.55 ns(+3.50%)Baseline: 150.29 ns | 209.73 ns (74.17%) |
| Payload_encryption/pack/remove_cmd | 📈 view plot 🚷 view threshold | 115.57 ns(+2.39%)Baseline: 112.88 ns | 150.70 ns (76.69%) |
| Payload_encryption/pack/set_cmd | 📈 view plot 🚷 view threshold | 224.16 ns(+15.32%)Baseline: 194.39 ns | 263.52 ns (85.06%) |
| Payload_encryption/unpack/remove_cmd | 📈 view plot 🚷 view threshold | 203.93 ns(+6.08%)Baseline: 192.24 ns | 280.15 ns (72.79%) |
| Payload_encryption/unpack/set_cmd | 📈 view plot 🚷 view threshold | 282.25 ns(+4.75%)Baseline: 269.45 ns | 374.38 ns (75.39%) |
| Raft_1Node_Latency/prefix/1node | 📈 view plot 🚷 view threshold | 2,614,700.00 ns(-2.94%)Baseline: 2,693,850.78 ns | 6,692,309.49 ns (39.07%) |
| Raft_1Node_Latency/read/1node | 📈 view plot 🚷 view threshold | 43,927.00 ns(+15.70%)Baseline: 37,965.02 ns | 53,633.95 ns (81.90%) |
| Raft_1Node_Latency/remove/1node | 📈 view plot 🚷 view threshold | 404,370.00 ns(-52.44%)Baseline: 850,235.47 ns | 4,155,158.61 ns (9.73%) |
| Raft_1Node_Latency/write/1node | 📈 view plot 🚷 view threshold | 402,450.00 ns(-59.06%)Baseline: 982,985.62 ns | 5,499,041.49 ns (7.32%) |
| build_snapshot/default | 📈 view plot 🚷 view threshold | 113,850.00 ns(-9.96%)Baseline: 126,442.11 ns | 222,329.80 ns (51.21%) |
| fernet token/project | 📈 view plot 🚷 view threshold | 1,474.80 ns(+4.13%)Baseline: 1,416.24 ns | 1,799.18 ns (81.97%) |
| get_data_keyspace | 📈 view plot 🚷 view threshold | 0.33 ns(+4.87%)Baseline: 0.31 ns | 0.39 ns (85.14%) |
| get_db | 📈 view plot 🚷 view threshold | 0.33 ns(+3.73%)Baseline: 0.31 ns | 0.39 ns (84.41%) |
| get_fernet_token_timestamp/project | 📈 view plot 🚷 view threshold | 137.38 ns(-1.86%)Baseline: 139.98 ns | 179.04 ns (76.73%) |
| get_keyspace | 📈 view plot 🚷 view threshold | 4.33 ns(-29.56%)Baseline: 6.15 ns | 14.59 ns (29.69%) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add ScimRealmRead and ScimSync loadtest scenarios covering raft-backed
federation/SCIM (ADR 0021, 0024): realm CRUD reads/updates via admin
token, and the real IdP-connector lifecycle over /SCIM/v2 with a
per-VU API Key bearer (provision, reconcile, attribute drift,
offboard). Seed setup is now idempotent against a pre-existing SCIM
realm/IdP (no delete endpoint exists, so an interrupted prior run
leaves them behind; 409 now reuses them instead of aborting seed).
While chasing intermittent 401s surfaced by ScimSync under load,
found and fixed two real bugs in the raft-backed auth path:
Timing oracle in ApiKeyAuth: the IP-not-allowed rejection branch
returned immediately while every other rejection branch (not-found,
inactive, wrong-secret) burns an Argon2id hash first, letting an
attacker distinguish a valid-but-IP-blocked lookup_hash from a
nonexistent one by response latency (ADR 0021 Invariant 7). Now
burns the same dummy-hash cost.
Two linearizability gaps in the ReadIndex forward-to-leader path
(get_by_key/prefix/prefix_index): the leader-side gRPC handlers
served forwarded reads without re-confirming current leadership,
and follower-side callers silently fell back to an unguarded local
read whenever the forward RPC failed. Both fixed.
Signed-off-by: gtema artem.goncharov@gmail.com